class LocalStorageUtil {
    private _projectInfo: any = null;

    public get projectInfo() {
        if (!this._projectInfo) {
            this._projectInfo = JSON.parse(window.localStorage.getItem("projectInfo") || "{}");
        }
        return this._projectInfo;
    }

    public set projectInfo(v: any) {
        this._projectInfo = v;
        window.localStorage.setItem("projectInfo", JSON.stringify(v));
    }
}

export const localStorageUtil = new LocalStorageUtil();
